public class Dog extends animal{
    public Dog(String name, int age) {
        super(name,age);
    }
    public  void bark() {
        System.out.println("正在汪汪叫");
    }
    public static void main(String[] args) {
        Dog dog = new Dog("小白",5);
        System.out.println(dog.name);
        System.out.println(dog.age+"岁");
        dog.bark();

    }
}
